admin.factory('load2scope', ['util','localStorageService', function(util,localStorageService){
	return function (arr , scope){
		scope.map = {};
		angular.forEach(arr, function(item, i){
			scope[item] = localStorageService.get(item);
			scope.map[item] = util.array2map( scope[item] );
		});

		return scope;
	};
}])